using System.Collections;
using System.Collections.Generic;
using UnityEngine;

namespace Episode01
{
    public class Projectile : MonoBehaviour
    {
        float speed = 10;

        public void SetSpeed(float newSpeed)
        {
            speed = newSpeed;
        }

        private void Update()
        {
            transform.Translate(Vector3.forward * Time.deltaTime * speed);
        }
    }

}
